@extends('base')
@section('content')
    <div class="banner">
        <div class="ny_img">
            <img src="images/ny_banner1.jpg">
        </div>
    </div>
    <!--友情链接-->

    <div class="container1200">
        <h2 class="h-h2 mb20">名企云集 创新高地</h2>
        <ul class="link_box link_con">
            @foreach($companies as $companyItem)
                <li>
                    <a href="{{url('/company/detail/'.$companyItem->id)}}">
                        <img src="{{asset("/img/".$companyItem->type.'-'.json_decode($companyItem->content)->pic.'/165-63')}}"
                             alt="{{$companyItem->name}}">
                        <p>{{$companyItem->name}}</p>
                    </a>
                </li>
            @endforeach
        </ul>
        @if ($companies->hasPages())
            <div class="list-page">
                {!! $companies->render() !!}
            </div>
        @endif
    </div>
@stop